package com.time.workbench.efficient.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.time.workbench.efficient.entity.bo.Application;
import com.time.workbench.efficient.entity.bo.Server;
import com.time.workbench.efficient.entity.dto.ApplicationPageReq;
import com.time.workbench.efficient.entity.dto.ServerPageReq;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 服务器管理mapper
 */
public interface ServerMapper extends BaseMapper<Server> {

    Page<Server> page(@Param("serverIPage") IPage<Server> serverIPage, @Param("serverPageReq") ServerPageReq serverPageReq);

    List<Server> selectByEnvironment(@Param("environmentId") Integer environmentId);
}
